package com.aspire.nm.component.miniServerDemo.server;

import com.aspire.nm.component.miniServer.Controll;
import com.aspire.nm.component.miniServer.annotation.Controller;
import com.aspire.nm.component.miniServer.annotation.cls.Controllers;
import com.aspire.nm.component.miniServer.annotation.cls.Controllers.MethodType;

/**
 * timeOut 注解参数会导致性能下降1/5左右
 *
 */
@Controllers(path="demo/",methodType=MethodType.GET)
//@Controllers(path="demo/",allowIpsPattern="127\\.0\\.0\\.\\d{1,3}",methodType=MethodType.GET,timeOut=2000)
public class ExpensivelImpl implements Controll {
    /**
     * http://127.0.0.1:7071/demo/expensive
     */

    @Controller(desc="高并发测试")
    public String expensive(){
        return "say expensive !";
    }
    
}

